package org.springframework.beans.factory.support;

import org.springframework.beans.factory.config.AnnotatedBeanDefinition;
import org.springframework.core.type.AnnotationMetadata;
import org.springframework.core.type.StandardAnnotationMetadata;


public class AnnotatedGenericBeanDefinition extends GenericBeanDefinition implements AnnotatedBeanDefinition {

    private final AnnotationMetadata metadata;

    public AnnotatedGenericBeanDefinition(Class<?> annotatedClass){
        this.setBeanClass(annotatedClass);
        this.metadata = new StandardAnnotationMetadata(annotatedClass);
    }

    @Override
    public AnnotationMetadata getMetadata() {
        return metadata;
    }
}